import request from './../utils/request'

export function adminLogin (params) {
  return request.post('/admin/login', params)
}

export function adminAdd (params) {
  return request.post('/admin/add', params)
}
export function getAdminDetail (params) {
  return request.get('/admin/detail', { params })
}
export function getAdminList (params) {
  return request.get('/admin/list', { params })
}

export function updateAdmin (params) {
  return request.post('/admin/update',  params )
}